import React from 'react';

import Header from "../header.js"
import Footer from "../footer.js";
import Info from "./info.js";
import Car from "../food//shoppingCar.js";
export default class Confirm extends React.Component {
    constructor(props) {
        super(props);
        this.state=({
            "shoppingCar": true,
            "confirm": true
        })
    }
    change(){
        this.setState({
            "shoppingCar": !this.state.shoppingCar
        });
    }
    render() {
        document.title="确认下单";
        return <div>
            <Header />
            <Info />
            <Footer change={this.change.bind(this)} confirm={this.state.confirm}/>
            {
                !this.state.shoppingCar
                ? <Car/>
                : null
            }
        </div>
    }
}
